package storage;

import java.awt.Color;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.BorderFactory;
import javax.swing.ButtonGroup;
import javax.swing.JPanel;
import javax.swing.JButton;

import comps.JButton_me;
import comps.JFrame_me;

public class mytext1 extends JFrame_me {
	private static final long serialVersionUID = 1L;
	private JButton r1;
	private JButton r2;
	private JButton r3;
	private JPanel con;

	public mytext1() {
		r1 = new JButton("asd");
		r2 = new JButton("asd");
		r3 = new JButton("asd");
		ButtonGroup btn_group = new ButtonGroup();
		btn_group.add(r1);
		btn_group.add(r2);
		btn_group.add(r3);
		con = (JPanel)getContentPane();
		con.add(r1);
		con.add(r2);
		con.add(r3);
		r1.setBounds(0, 30, 100, 100);
		r2.setBounds(0, 130, 100, 100);
		r3.setBounds(0, 230, 100, 100);
		r1.setSelected(true);
		r2.addActionListener(new ActionListener() {
			
			@Override
			public void actionPerformed(ActionEvent e) {
				// TODO Auto-generated method stub
				con.remove(r1);
				con.updateUI();
			}
		});
		setVisible(true);
	}
	
	
	
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		new mytext1();
	}

}
